<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Title</title>
</head>
<body>
            <!-- 单选 -->
        <p>请选择性别：</p>
        男<input type="radio" name="sex" value="1"/>
        女<input type="radio" name="sex" value="2"/>
        <!-- 多选 -->
        <p>请选择爱好：</p>
        足球<input type="checkbox" name="favor" value="1"/>
        篮球<input type="checkbox" name="favor" value="2"/>
        乒乓球<input type="checkbox" name="favor" value="3"/>
</body>
</html>